<?php

class Accueil extends CI_Controller {	
	public function index()
	{
		//ADMINISTRATEUR
		if ($this->session->userdata('admin')=='1') {

			$this->load->helper('url');
			$this->load->view('headerAdmin.php');
			$this->load->model('modeleSessionAdmin');
			$data['enregt'] = $this->modeleSessionAdmin->listeValidationAdmin();
			$this->load->view('v_accueilAdmin',$data);
			$this->load->view('footer.php');

		//CLIENT
		} else if ($this->session->userdata('admin')=='2') {

			$this->load->helper('url');
			$this->load->view('headerClient.php');
			$this->load->view('v_accueil.php');
			$this->load->view('footer.php');

		} else {
			
			$this->load->helper('url');
			$this->load->view('header.php');
			$this->load->view('v_accueil.php');
			$this->load->view('footer.php');
		}
	}

}

/* End of file Accueil.php */
/* Location: ./application/controllers/Accueil.php */